package edu.sctu.zhangwang.month201505.day20150515;

/**
 * Created by user10 on 2015/5/15.
 */
public class TextChildTwo extends TextOne{

    public TextChildTwo(FirstData firstData) {
        super(firstData);
    }

//    @Override
//    public void jiKou() {
//
//    }

    @Override
    public void getSystem() {
        if (firstData.getScore()>=60 && firstData.getSex().equals("男")){
            String system = "姓名："+firstData.getName()+"\t成绩："+firstData.getScore()+"\t年龄："+firstData.getAge()+"\t学号："+firstData.getName()+"\t地址："+firstData.getAddress();
            System.out.println(system);
        }else{
            System.out.println("不符合");
        }
    }


    public void jiKou(int age) {

    }
}
